beginPath, stroke

beginPath() declares that a path is about to be drawn. This method should be called before other drawing methods have been called.

stroke() declares that a path has been drawn completely and that the path should be made visible. This method should be called after other drawing methods have been called.